package com.rs2lite;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * Class RSFocusListener, This class listens for activation events to pause the
 * autotyper
 * 
 * Note: This class is currently in development, and will be changed.
 * 
 * @author Nicole <nicole@rune-server.org> This file is protected by The BSD
 *         License, You should have recieved a copy named "BSD License.txt"
 */

public class RSFocusListener extends WindowAdapter {

	@Override
	public void windowDeactivated(WindowEvent e) {
		RS2Lite.getAutoTyper().pause(true);
	}

	@Override
	public void windowActivated(WindowEvent e) {
		RS2Lite.getAutoTyper().pause(false);
	}

}
